package cn.edu.scau.cmi.zhuangjunsheng.Adapter;

import java.util.Collections;
import java.util.List;

public class SortUtil{
	public List<Integer> sortInt(List<Integer> intList) {
		int siz = intList.size();
		for(int i=0;i<siz;i++) {
			for(int j=i+1;j<siz;j++) {
				int num1 = intList.get(i);
				int num2 = intList.get(j);
				if(num2 < num1) {
					Collections.swap(intList, i, j);
				}
			}
		}
		return intList;
	}
}
	
	

